package com.example.project.service.impl;

import com.example.project.dao.TableADao;
import com.example.project.entity.TableA;
import com.example.project.service.TableAServicce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Ethan on 2022-08-25 03:02
 */
@Service
public class TableAServiceImpl implements TableAServicce {
    @Autowired
    private TableADao tableADao;

    @Override
    public List<TableA> findAll() {

        return tableADao.findAll();
    }

    @Override
    public List<TableA> findByName(String s) {
        return tableADao.findByName(s);
    }

    @Override
    public void saveTableA(TableA tableA) {
        tableADao.saveTableA(tableA);
    }

    @Override
    public void deleteByName(int id) {
        tableADao.deleteByName(id);
    }

    @Override
    public void update(TableA tableA) {
        tableADao.update(tableA);
    }
}
